﻿<UserControl 
    x:Class="VS.MainModule.Views.MainView" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c="clr-namespace:VS.Infrastructure.Controls;assembly=VS.Infrastructure"
    xmlns:models="clr-namespace:VS.MainModule.Models"
    mc:Ignorable="d" VerticalAlignment="Bottom"
    d:DataContext="{d:DesignData /SampleData/MainViewModelSampleData.xaml}">

    <UserControl.Resources>
        <Style TargetType="RichTextBox">
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="IsHitTestVisible" Value="False"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="Foreground" Value="#FF222222"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="IsReadOnly" Value="True"/>
            <Setter Property="FontSize" Value="13.333"/>
            <Setter Property="Margin" Value="4"/>
        </Style>
        <Style x:Key="Belizarius" TargetType="TextBlock">
            <Setter Property="FontFamily" Value="/VS.Infrastructure;component/fonts/belizarius.ttf#Belizarius" />
            <Setter Property="FontSize" Value="50" />
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="Foreground" Value="#FF222222"/>
        </Style>
    </UserControl.Resources>
    <StackPanel Width="180">

        <Grid>
            <TextBlock FontSize="58" FontFamily="/VS.Infrastructure;component/fonts/anillo.ttf#Anillo" 
                   Foreground="Blue" Opacity="0.12" Text="?"/>
            <RichTextBox>
                <Paragraph>
                    <Run Foreground="#AA0000FF" FontSize="13.333" FontWeight="Bold" Text="VisualSingularity "/>
                    est spécialiste des technologies Microsoft dans le développement d'applications riches
                            pour le bureau
                    <Run FontSize="11" FontStyle="Italic" Text=" (RDA)"/>
                    , internet
                    <Run FontSize="11" FontStyle="Italic" Text=" (RIA) "/>
                    , desktop
                    <Run FontSize="11" FontStyle="Italic" Text=" (WPF) "/>
                    ou bien encore Windows Phone
                    <Run FontSize="11" FontStyle="Italic" Text=" (WP7) "/>
                </Paragraph>
            </RichTextBox>
        </Grid>
        <StackPanel Grid.Row="1"  Margin="0,-5, 0, 0">
                <StackPanel>
                <StackPanel.Effect>
                        <DropShadowEffect BlurRadius="3" Color="Gray" ShadowDepth="2" />
                </StackPanel.Effect>                    
                    <TextBlock Style="{StaticResource Belizarius}" Text="V i s u a l" />
                    <Path Grid.Row="1" Margin="0, -24, 0, 0" VerticalAlignment="Center" Stretch="Fill" Stroke="Black" Data="M 130,0 C 0,0 0,0 0,0" />
                    <TextBlock Style="{StaticResource Belizarius}" Margin="0, -15, 0, 0" Text="Singularity" />
            </StackPanel>
                <TextBlock HorizontalAlignment="Center" Margin="-1, -12, 0, 0" FontSize="10" Foreground="Gray" Text="WPF &amp; Silverlight RIA Development" />
            <ContentControl MinHeight="50" MinWidth="50" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Row="1">                
                <Grid>
                    <TextBlock FontSize="96" FontFamily="/VS.Infrastructure;component/fonts/anillo.ttf#Anillo" 
                        Foreground="Blue" Opacity="0.12" Text="&quot;"/>
                    <StackPanel>                       
                        <RichTextBox>
                            <Paragraph>
                                La
                                <Run Foreground="#AA0000FF" FontSize="13.333" FontWeight="Bold" Text=" signature "/>
                                de notre expertise se trouve dans la manière de traiter chaque projet, qui mérite une réponse à la fois
                                <Run Foreground="#AA0000FF" FontSize="13.333" FontWeight="Bold" Text=" singulière"/> ,
                                <Run Foreground="#AA0000FF" FontSize="13.333" FontWeight="Bold" Text=" créative "/>
                                et
                                <Run Foreground="#AA0000FF" FontSize="13.333" FontWeight="Bold" Text=" adaptée "/>
                                au métier.
                            </Paragraph>
                        </RichTextBox>
                        <RichTextBox IsHitTestVisible="True">
                            <Paragraph>
                                <Hyperlink Command="{Binding OpenArticle}">
                                    <Hyperlink.CommandParameter>
                                        <models:XamlContent Id="about"/>
                                    </Hyperlink.CommandParameter>
                                    En savoir plus...
                                </Hyperlink>
                            </Paragraph>
                        </RichTextBox>
                    </StackPanel>
                </Grid>
            </ContentControl>
        </StackPanel>
    </StackPanel>
</UserControl>
